package br.ufpi.persistenci;

import org.hibernate.cfg.AnnotationConfiguration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
import org.hibernate.tool.hbm2ddl.SchemaUpdate;


public class GeradorDeBanco {

	public static void main(String[] args) {
		AnnotationConfiguration config = new AnnotationConfiguration()
				.configure();

		config = HibernateUtil.getEntityPersistence(config);

		new SchemaUpdate(config).execute(true, true);
                //new SchemaExport(config).create(true, true);
	}

}
